const template = `
	<div class="room">
		<component v-if="hasRegisterRoomAlready()" :is="roomId"></component>
	</div>
`;

export default {
	props: {
		roomId: '',
	},
	data() {
		return {
		}
	},
	methods: {
		// 是否全局注册过该车间vue组件
		hasRegisterRoomAlready() {
			// const roomId = this.roomId;
			// // 动态导入
			// if(!this.$root.$options.components[roomId]) {
			// 	Vue.component(roomId, () => import(`./room/${roomId}.js`))
			// }
			
			return true;
		}
	},
	template,
	components: {
		
	},
	
}